<!doctype html>
<html>
<head>
    <title>医嘱管理-长期医嘱</title>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0">
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <link rel="stylesheet" type="text/css" href="../../css/jquery.mobile-1.4.0.css" />
    <link rel="stylesheet" type="text/css" href="../../css/zpdydhl_mobile.css">
    <link rel="stylesheet" type="text/css" href="../../css/mobiscroll.custom-2.6.2.min.css">
    <script type="text/javascript" src="../../js/jquery-1.8.3.min.js"></script>
    <script type="text/javascript" src="../../js/jquery.mobile-1.4.0.min.js"></script>
    <script type="text/javascript" src="../../js/zpdydhl_mobile.js"></script>
    <script type="text/javascript" src="../../js/mobiscroll.custom-2.6.2.min.js"></script>
    <script type="text/javascript" src="../../js/yizhu.js"></script>
    <style type="text/css">
        .li_zhixing_state a {
            font-size: 18px;
            color: #0D85C0;
        }

        /*加载loding*/
        .spinner {
          margin: 5px auto 0;
          width: 150px;
          text-align: center;
          position: fixed;
        }

        .spinner > div {
          width: 20px;
          height: 20px;
          background-color: #67CF22;

          border-radius: 100%;
          display: inline-block;
          -webkit-animation: bouncedelay 1.4s infinite ease-in-out;
          animation: bouncedelay 1.4s infinite ease-in-out;
          /* Prevent first frame from flickering when animation starts */
          -webkit-animation-fill-mode: both;
          animation-fill-mode: both;
        }

        .spinner .bounce1 {
          -webkit-animation-delay: -0.32s;
          animation-delay: -0.32s;
        }

        .spinner .bounce2 {
          -webkit-animation-delay: -0.16s;
          animation-delay: -0.16s;
        }

        @-webkit-keyframes bouncedelay {
          0%, 80%, 100% { -webkit-transform: scale(0.0) }
          40% { -webkit-transform: scale(1.0) }
        }

        @keyframes bouncedelay {
          0%, 80%, 100% {
            transform: scale(0.0);
            -webkit-transform: scale(0.0);
          } 40% {
            transform: scale(1.0);
            -webkit-transform: scale(1.0);
          }
        }
        /*end*/
    </style>
</head>
<body>
<div data-role="page" data-theme="c">

	<table align="center" style="text-align:center middle;width:100%">
		<tr>
			<td><a data-role="button" class="changqi_linshi_switch" id="switch_changqi" style="width:80%;" zyizhu_type="拒绝执行">拒绝执行</a> </td>
			<!-- <td><a data-role="button" class="changqi_linshi_switch" id="switch_linshi" style="width:80%;" zyizhu_type="临时">临时</a></td>-->
		</tr>
	</table>
    <!-- div data-role="navbar" data-theme="a" id="zhixing_state_navbar">
        <ul>
            <li class="li_zhixing_state" zhixing_state="拒绝执行"><a href="#" data-icon="" data-theme="a" class="ui-btn-active" style="color:#ffffff;font-size:15px;">拒绝执行</a></li>
            <li class="li_zhixing_state" zhixing_state="开始执行"><a href="#" data-icon="" data-theme="a" style="color:#0D85C0;font-size:15px;">开始执行</a></li>
            <li class="li_zhixing_state" zhixing_state="停止执行"><a href="#" data-icon="" data-theme="a" style="color:#0D85C0;font-size:15px;">停止执行</a></li>
            <li class="li_zhixing_state" zhixing_state="已添加"><a href="#" data-icon="" data-theme="a" style="color:#0D85C0;font-size:15px;">新添加</a></li> 
        </ul>
    </div>-->
    <div data-role="content" class="content" style="">
        <div class="yizhu_list_content" style="">

        </div>
    </div>
    <div style=" position:fixed; top:0px; bottom:0px; left:0px; right:0px; background-color:#000; z-index:999; height:100%; filter:alpha(opacity=90,Style=3);-moz-opacity:0.9;-khtml-opacity: 0.9;opacity: 0.9; display:none;" id="yizhu_dialog">
        <div class="yizhu_dialog" data-theme="a">
            <div class="yizhu_dialog_title" data-theme="a"></div>
            <div class="yizhu_dialog_content"></div>
            <div class="yizhu_dialog_button"></div>
        </div>
    </div>

    <!-- <div data-role="footer" data-position="fixed" class="footer_list"  data-tap-toggle="false" data-theme="b">
        <ul>
			<li><a href="./showPatientZhuyuanDetail.html" data-ajax="false"><img src="../../css/images/bl.png"></a></li>
			<li><a href="./showPatientZhenduan.html" data-ajax="false"><img src="../../css/images/jy.png"></a></li>
			<li><a  href="./showYizhuChangqi.html" data-ajax="false"><img src="../../css/images/yz_hover.png"></a></li>
			<li><a href="./showTizhengList.html" data-ajax="false"><img src="../../css/images/tz.png"></a></li>
			<li><a href="../JianyanJiancha/showJianchaList.html" data-ajax="false"><img src="../../css/images/jc.png"></a></li>
        </ul>
    </div>-->
</div>
<script type="text/javascript">
    $(function(){
        document_type_global="show_yizhu";
        $("#switch_changqi").css("background-color","#015884");
        $("#switch_changqi").css("color","#black");
        $("#switch_linshi").css("background-color","#EAEAEA");
        $("#switch_linshi").css("color","#000");
        //getCurrentUserInfo();

        var changqi_or_linshi_type = "长期";
        // 选项卡切换
        $(".li_zhixing_state").die().live("vmousedown",function(){
            $("#zhixing_state_navbar").find("ul").find("li").find('a').css("color","#0D85C0");
            $(this).find("a").css("color","#ffffff");
            $("#zhixing_state_navbar").find("ul").find("li").find('a').removeClass("ui-btn-active");
            $(this).find("a").addClass("ui-btn-active");
            var zhixing_state = $(this).attr("zhixing_state");
            getYizhuList(patient_info_global.zhuyuan_id,"全部",zhixing_state,false,changqi_or_linshi_type);
        });

        // 选项卡切换
        $(".changqi_linshi_switch").die().live("vmousedown",function(){

            var zhixing_state = $(this).attr("zyizhu_type");
            changqi_or_linshi_type = zhixing_state;
            if(zhixing_state == "长期"){

                $("#switch_linshi").css("background-color","#EAEAEA");
                $("#switch_linshi").css("color","#000");
                $("#switch_changqi").css("background-color","#015884");
                $("#switch_changqi").css("color","#ffffff");
                $("#zhixing_state_navbar").find("ul").html('<li class="li_zhixing_state ui-block-a" zhixing_state="全部"><a href="#" data-icon="" data-theme="a" class="ui-btn-active ui-link ui-btn ui-btn-a" style="color:#ffffff;font-size:15px;">全部</a></li><li class="li_zhixing_state ui-block-b" zhixing_state="开始执行"><a href="#" data-icon="" data-theme="a" class="ui-link ui-btn ui-btn-a" style="color:#0D85C0;font-size:15px;">开始执行</a></li><li class="li_zhixing_state ui-block-c" zhixing_state="停止执行"><a href="#" data-icon="" data-theme="a" class="ui-link ui-btn ui-btn-a" style="color:#0D85C0;font-size:15px;">停止执行</a></li><li class="li_zhixing_state ui-block-d" zhixing_state="新添加"><a href="#" data-icon="" data-theme="a" class="ui-link ui-btn ui-btn-a" style="color:#0D85C0;font-size:15px;">新添加</a></li>');
            }else if(zhixing_state == "临时"){
			$("#switch_changqi").css("background-color","#EAEAEA");
                $("#switch_changqi").css("color","#000");
                $("#switch_linshi").css("background-color","#015884");
                $("#switch_linshi").css("color","#ffffff");
                $("#zhixing_state_navbar").find("ul").html('<li class="li_zhixing_state ui-block-a" zhixing_state="全部"><a href="#" data-icon="" data-theme="a" class="ui-btn-active ui-link ui-btn ui-btn-a" style="color:#ffffff;font-size:15px;">全部</a></li><li class="li_zhixing_state ui-block-b" zhixing_state="已下达"><a href="#" data-icon="" data-theme="a" class="ui-link ui-btn ui-btn-a" style="color:#0D85C0;font-size:15px;">已下达</a></li><li class="li_zhixing_state ui-block-c" zhixing_state="开始执行"><a href="#" data-icon="" data-theme="a" class="ui-link ui-btn ui-btn-a" style="color:#0D85C0;font-size:15px;">开始执行</a></li><li class="li_zhixing_state ui-block-d" zhixing_state="执行完毕"><a href="#" data-icon="" data-theme="a" class="ui-link ui-btn ui-btn-a" style="color:#0D85C0;font-size:15px;">执行完毕</a></li>');

            }
            getYizhuList(patient_info_global.zhuyuan_id,"全部","全部",false,changqi_or_linshi_type);

        });

    });
	function refreshData(){
		//获取默认数据
		setHeader();
        //alert(patient_info_global.zhuyuan_id);
        getYizhuList(patient_info_global.zhuyuan_id,"全部","拒绝执行",false,"长期");

	}
</script>
</body>
</html>

